<app:aside-block class='aside-block-highlighted' heading='Rampart' visibility-model='Room.asidePanels.view'>
<div ng:controller='Top.Game.Room.RampartProperties as RampartProperties'>
<div class='object-properties-id'>
ID: {{Room.selectedObject._id}}
</div>
<div>
<label>Owner:</label>
<a ng:href="#!{{ 'top.profile' | routeSegmentUrlStateless:{username: Room.users[Room.selectedObject.user].username} }}" ng:if='!Room.isSelectedObjectNPC()' title='View user profile'>
<img app:badge-src='Room.users[Room.selectedObject.user].badge'>
{{Room.users[Room.selectedObject.user].username}}
</a>
<span ng:if='Room.isSelectedObjectNPC()'>
<a>
<img app:badge-src='Room.users[Room.selectedObject.user].badge'>
</a>
{{Room.users[Room.selectedObject.user].username}}
</span>
</div>
<div>
<label>Position:</label>
{{Room.selectedObject.x}}, {{Room.selectedObject.y}}
</div>
<div>
<label>Hits:</label>
{{Room.selectedObject.hits | round}} / {{Room.selectedObject.hitsMax | round}}
</div>
<div ng:if='Room.gameTime'>
<label>Decay in:</label>
{{Room.selectedObject.nextDecayTime - Room.gameTime}}
</div>
<div>
<label>Public:</label>
<span ng-class='{damaged: Room.selectedObject.isPublic}'>
{{Room.selectedObject.isPublic ? 'Yes' : 'No'}}
</span>
</div>
<ng-include src="'room-object-effects'"></ng-include>
<md-checkbox class='md-primary' md-no-ink ng:change='Room.onNotifyWhenAttackedChange()' ng:if="!Game.readOnly &amp;&amp; Room.selectedObject.user == Me()._id &amp;&amp; Room.roomMode == 'world'" ng:model='Room.selectedObject.notifyWhenAttacked'>
Notify me when attacked
</md-checkbox>
<md:button class='md-primary md-hue-1 allwidth' ng:click='RampartProperties.setPublic(!Room.selectedObject.isPublic)' ng:if='!Game.readOnly &amp;&amp; (Room.selectedObject.user == Game.player || Room.selectedObject.user == 0 &amp;&amp; Game.player == Me()._id)'>
<span ng-if='Room.selectedObject.isPublic'>Make non-public</span>
<span ng-if='!Room.selectedObject.isPublic'>Make public</span>
</md:button>
<app:room-destroy-structure></app:room-destroy-structure>
</div>
</app:aside-block>
